#include "MyButton.h"

MyButton::MyButton(QWidget *parent)
    : QPushButton(parent)
{
    connect(this, SIGNAL(clicked()),
            this, SLOT(clickedSlot()));
}

void MyButton::clickedSlot()
{
    QString text = this->text();
    emit textChanged(text);
}
